package com.example.factory;

import com.example.car.BYDFamilyCar;
import com.example.car.BYDSportsCar;
import com.example.car.Car;

// BYD工厂类
public class BYDFactory extends AbstractCarFactory {
    @Override  
    public Car createFamilyCar() {
        System.out.println("创建byd家庭汽车...");
        return new BYDFamilyCar();
    }

    @Override
    public Car createSportsCar() {
        System.out.println("创建byd运动汽车...");
        return new BYDSportsCar();
    }  
}
